package com.hubu.parking.service;

import cn.hutool.json.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hubu.parking.entity.park.ParkingReservation;
import com.hubu.parking.model.dto.park.CancelReserveDto;
import com.hubu.parking.model.dto.park.GetCurrentMessageDto;

/**
* @author 19468
* @description 针对表【parking_reservation(用户车位预约记录表)】的数据库操作Service
* @createDate 2025-03-02 16:52:08
*/
public interface ParkingReservationService extends IService<ParkingReservation> {

    /**
     * 当前信息界面用
     * @param dto 用户id
     * @return jsonObj
     */
    JSONObject getCurrentMessage(GetCurrentMessageDto dto);

    /**
     * 取消预约
     * @param dto 取消预约
     * @return 是否成功
     */
    Integer cancelReserve(CancelReserveDto dto);

}
